package com.zxx.pattern.decoratorPattern.decorator3;

/**
 * @author zxx on 2021/7/13
 */
public class DecoratorShapeRed extends DecoratorShape {

    public DecoratorShapeRed(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        shape.draw();
        setRedBorder(shape);
    }

    private void setRedBorder(Shape shape) {
        System.out.println("Border Color:  Red");
    }
}
